/*
 * Copyright (C) 2009 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.rockchip.audiotest;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Debug;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.text.method.ScrollingMovementMethod;
import android.widget.EditText;
import android.widget.CheckBox;
import android.app.Dialog;
import android.media.AudioManager;
import android.content.Context;
import java.util.ArrayList;
import android.media.AudioPort;
import android.media.AudioDeviceInfo;
import java.util.Arrays;
import java.util.List;
import android.util.Slog;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {
    private static final boolean DBG = false;
    private static final String TAG = "AudioMangeActivity";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent i = getIntent();
        if (CheckPermissionActivity.jump2PermissionActivity(this, i != null ? i.getAction() : null)) {
            finish();
            return;
        }
        setContentView(R.layout.activity_main);

        Button button = (Button) findViewById(R.id.equalizer_actvity);
        button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                //startActivity(new Intent(EffectsTest.this, EnvReverbTest.class));
            }
        });

        button = (Button) findViewById(R.id.audiomanager_actvity);
        button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, AudioMangeActivity.class));
            }
        });
    }
}